import request from '@/utils/request'

export function login(data: object) {
  return request({
    url: '/user/login',
    method: 'post',
    data: data
  })
}

export function register(data: object) {
  return request({
    url: '/user/register',
    method: 'post',
    data: data
  })
}

export function reset(data: object) {
  return request({
    url: '/user/reset',
    method: 'post',
    data: data
  })
}

export function sendMsg(data: object) {
  return request({
    url: '/user/sendMsg',
    method: 'post',
    data: data,
    timeout: 20000
  })
}
export function updatePassword(data: object) {
  return request({
    url: '/user/changePassword',
    method: 'post',
    data: data
  })
}
